# 这里只是用来打包
FROM node:14.13.1-alpine3.10 as builder 

COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build

# 选择nginx 服务器
FROM nginx:1.19.3-alpine

COPY --from=builder /dist /usr/share/nginx/html
